#导入模块
import re
#                  要求的目标字符串       被搜索的字符串
result =re.findall("abc","abchssidufguaidhudhgygabcshudhduhfuegiohifabc")
print(result)
#findall中flag参数的作用
rs1=re.findall("a.bc","a\nbc",re.DOTALL)
print(rs1)
rs2=re.findall("a.bc","a\nbc",re.S)
print(rs2)
#分组的应用
rs1=re.findall("a(.+)bc","a\nbc",re.DOTALL)
print(rs1)